<template>
	<view class="content">
		<button @click="toPath('login')">login</button>
		<button @click="toPath('score')">score</button>
		<button @click="toPath('demo')">demo</button>
		<view class="">
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// title: 'Hello'
			}
		},
		onLoad() {
			console.log(JSON.stringify(this.$store.state.user));
		},
		computed: {
			userInfo() {
				return this.$store.state.user.userInfo
			}
		},
		methods: {
			toPath(path) {
				uni.navigateTo({
					url: `/pages/${path}/${path}`,
				});
			}
		}
	}
</script>

<style>

</style>